//
//  FirstViewController.m
//  JsRunOCDemo
//
//  Created by HB on 16/7/4.
//  Copyright © 2016年 Zhangjitao. All rights reserved.
//

#import "FirstViewController.h"
#import "WebViewController.h"

@interface FirstViewController ()

@end

@implementation FirstViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    button.frame = CGRectMake(100, 100, 200, 60);
    [button setTitle:@"点击我" forState:UIControlStateNormal];
    
    [button addTarget:self action:@selector(pushNext) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:button];
    // Do any additional setup after loading the view.
}

- (void)pushNext {
    WebViewController *webVC = [[WebViewController alloc] init];
    [self showViewController:webVC sender:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
